package com.turbo.cloud.ods.web.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.turbo.cloud.core.base.PageQuery;
import com.turbo.cloud.ods.web.entity.DynamicQuery;
import com.turbo.cloud.ods.web.mapper.DynamicQueryMapper;
import com.turbo.cloud.ods.web.service.DynamicQueryService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 报表配置表 服务实现类
 * </p>
 *
 * @author zhangluning
 * @since 2024-08-07
 */
@RequiredArgsConstructor
@Service
public class DynamicQueryServiceImpl extends ServiceImpl<DynamicQueryMapper, Object> implements DynamicQueryService {

    final DynamicQueryMapper dynamicQueryMapper;

    /**
     * 动态SQL分页列表
     *
     * @param pageQuery 分页查询参数
     * @return Page
     */
    @Override
    public Page<Map<String, Object>> dynamicQueryPage(PageQuery<HashMap<String, String>> pageQuery) {
        return dynamicQueryMapper.dynamicQueryPage(pageQuery);
    }
}
